from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

router = DefaultRouter()
router.register(r'api', views.AlarmRecordViewSet)

urlpatterns = [
    path('', views.AlarmListView.as_view(), name='alarm_list'),
    path('acknowledge/', views.acknowledge_alarm, name='acknowledge_alarm'),
    path('', include(router.urls)),
] 